package com.xmtlxx.wms.mapper;

import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.xmtlxx.wms.domain.HandoverDtl;
import com.xmtlxx.wms.domain.bo.HandoverDtlBo;
import com.xmtlxx.wms.domain.vo.HandoverDtlVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 交接信息明细Mapper接口
 *
 * @author xmtlxx
 * @date 2022-09-23
 */
public interface HandoverDtlMapper extends BaseMapperPlus<HandoverDtlMapper, HandoverDtl, HandoverDtlVo> {
    /**
     * 根据条件分页查询交接信息明细
     *
     * @param handoverDtl 交接信息明细
     * @return Page HandoverDtl
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "h.create_by"),
//        @DataColumn(key = "deptName", value = "h.dept_id"),
//        @DataColumn(key = "userName", value = "h.create_by")
//    })
    Page<HandoverDtlVo> selectPageHandoverDtlList(@Param("page") Page<HandoverDtl> page,@Param("handoverDtl") HandoverDtlBo handoverDtl);

    /**
     * 查询交接信息明细列表
     *
     * @param handoverDtl 交接信息明细
     * @return 交接信息明细集合
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "h.create_by"),
//        @DataColumn(key = "deptName", value = "h.dept_id"),
//        @DataColumn(key = "userName", value = "h.create_by")
//    })
    List<HandoverDtlVo> selectHandoverDtlList(@Param("handoverDtl") HandoverDtlBo handoverDtl);

    HandoverDtlVo selectHandoverDtlVoByID(String id);
}
